package jmine.tec.test.metric.performance;

import jmine.tec.test.Builder;

/**
 * @author bruno.ortiz
 */
public class ResultSuccessBuilder implements Builder<ResultSuccess> {

    private String passed;

    private String state;

    /**
     * @return ResultSuccessBuilder
     */
    public static ResultSuccessBuilder umSuccess() {
        return new ResultSuccessBuilder();
    }

    /**
     * @param value value
     * @return this
     */
    public ResultSuccessBuilder comPassado(String value) {
        this.passed = value;
        return this;
    }

    /**
     * @param value value
     * @return this
     */
    public ResultSuccessBuilder comEstado(String value) {
        this.state = value;
        return this;
    }

    /**
     * @return ResultSuccess
     */
    public ResultSuccess build() {
        return new ResultSuccess(this.passed, this.state);
    }

}
